package org.bdd4j;

public abstract class Scenario {

	public void fail(){
		fail(null);
	}
	
	public void fail(String message){
		if(message==null){
			throw new BDDException();
		}else{
			throw new BDDException(message);
		}
	}
	
	public void assertEqual(String expected, String actual){
		if(expected==null || !expected.equals(actual)){
			throw new BDDException("assertEquals failed! Expected: {" + expected + "}, Actual:{" + actual + "}");
		}
	}
}
